package cn.com.cdb.ldms.handler;

import com.baomidou.mybatisplus.extension.incrementer.OracleKeyGenerator;

public class CustomOracleIdGenerator extends OracleKeyGenerator {
    public CustomOracleIdGenerator() {
    }

    @Override
    public String executeSql(String incrementerName) {
        return "SELECT TO_CHAR(SYSDATE, 'YYYYMMDD')|| TO_CHAR(" + incrementerName + ".NEXTVAL,'FM00000000') FROM DUAL";
    }

}